<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="计算2.css">
</head>
<body>
    <div class="calculator">
        <div class="bar">
            <span></span>
        </div>
        <div class="screen">
            <div class="prev"></div>
            <div class="current"></div>
        </div>
        <div class="buttons">
            <button class="function btn-del"
            data-type="delete">X</button>
            <button class="function " 
            data-type="clear">AC</button>
            <button class="function " 
            data-type="operate">*</button>
            <button>7</button>
            <button>8</button>
            <button>9</button>
        <button class="function "
         data-type="operate">%</button>
        <button>4</button>
        <button>5</button>
        <button>6</button>
        <button class="function "
         data-type="operate">+</button>
        <button>1</button>
        <button>2</button>
        <button>3</button>
        <button class="function "
         data-type="operate">-</button>
        <button>0</button>
        <button   data-type="equal"
        class="btn-equal" >=</button>
        </div>
       <div class="bar bar-bottom">
        <span></span>
       </div>
    </div>
    <script src="计算2.js"></script>
</body>
</html>